package wolfKill;

public class Player {
	// 身份
	String identity;
	// 阵营
	String camp;
	// 姓名
	String name;
	// 玩家状态
	int state;

	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
		switch (identity) {
		case "预言家":
			this.camp = "神"; 
			break;
		case "女巫":
			this.camp = "神";
			break;
		case "猎人":
			this.camp = "神";
			break;
		case "白痴":
			this.camp = "神";
			break;
		case "狼人":
			this.camp = "狼";
			break;
		case "平民":
			this.camp = "民";
			break;
		}
	}

	public String getCamp() {
		return camp;
	}

	public void setCamp(String camp) {
		this.camp = camp;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	@Override
	public String toString() {
		return name+":"+identity;
	}
	

}
